import {
	request
} from '@/utils/request.js';
//获取用户信息
export const get_user_info = (data) => {
	return request({
		url: '/uinfo/getInfo',
		data: data,
		method: 'POST'
	})
}

//获取用户信息
export const getAvatar = (data) => {
	return request({
		url: '/uinfo/getAvatar',
		data: data,
		method: 'GET'
	})
}
//修改用户信息
export const set_user_info = (data) => {
	return request({
		url: '/uinfo/setInfo',
		data: data,
		method: 'POST'
	})
}

//获取客服二维码
export const getKeFuCode = (data) => {
	return request({
		url: '/common/getKeFuCode',
		data: data,
		method: 'GET'
	})
}
//获取系统基础信息
export const getSysinfo = (data) => {
	return request({
		url: '/common/getSysinfo',
		data: data,
		method: 'GET'
	})
}
//获取微信信息
export const getWechatInfo = (data) => {
	return request({
		url: '/common/getWechatInfo',
		data: data,
		method: 'GET'
	})
}
//获取用户协议
export const userAgreement = (data) => {
	return request({
		url: '/common/userAgreement',
		data: data,
		method: 'GET'
	})
}
//获取用户协议
export const shareList = (data) => {
	return request({
		url: '/uinfo/getShare',
		data: data,
		method: 'GET'
	})
}

export const dochangepwd = (data) => {
	return request({
		url: '/uinfo/changepwd',
		data: data,
		method: 'POST'
	})
}





